package ve.lm.hrms_cy.Entity.Request;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDateTime;

public class UserQueryRequest {

    private Integer current;
    private Integer size;
    private Long id;
    private String keyword;
    private LocalDateTime startTime;
    private LocalDateTime endTime;

    @JsonCreator
    public UserQueryRequest(@JsonProperty(value = "current", required = false) Integer current ,@JsonProperty(value = "size", required = false) Integer size ,@JsonProperty(value = "id", required = false) Long id ,@JsonProperty(value = "keyword", required = false) String keyword ,@JsonProperty(value = "startTime", required = false) LocalDateTime startTime ,@JsonProperty(value = "endTime", required = false) LocalDateTime endTime){

        this.current=current!=null?current:1;
        this.size=size!=null?size:10;
        this.id=id;
        this.keyword=keyword;
        this.startTime=startTime;
        this.endTime=endTime;

    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }
}
